{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 8,
   "id": "b591c601",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "目前的时间\n",
      "现在的时间是： 2021/10—/06 18:45 Wednesday\n"
     ]
    }
   ],
   "source": [
    "print(\"目前的时间\")\n",
    "import time\n",
    "now_time1 = time.strftime(\"%Y/%m—/%d\")\n",
    "now_time2 = time.strftime(\"%H:%M\")\n",
    "now_time3 = time.strftime(\"%A\")\n",
    "print(\"现在的时间是：\",now_time1,now_time2,now_time3)\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "id": "f32892e5",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "我的课程表\n",
      "2\n",
      "星期二有五节课\n",
      "8：00-9：30瑜伽\n",
      "9：45-12：00创业基础（实践）\n",
      "14：30-15：55新媒体时代的新闻评论\n",
      "16:10-17:35大学英语（三）B1班\n",
      "18：45-20：55毛概理论\n",
      "FINISH\n"
     ]
    }
   ],
   "source": [
    "print(\"我的课程表\")\n",
    "import datetime\n",
    "time = datetime.datetime.today().weekday()\n",
    "week_time = int(time)\n",
    "print(week_time)\n",
    "if week_time==1:\n",
    "    print(\"星期一有二节课\");print(\"14：30-16：50 python 语言\");print(\"18：45-20：10 毛概实践\")\n",
    "elif week_time==2:\n",
    "    print(\"星期二有五节课\");print(\"8：00-9：30瑜伽\");print(\"9：45-12：00创业基础（实践）\");print(\"14：30-15：55新媒体时代的新闻评论\");print(\"16:10-17:35大学英语（三）B1班\");print(\"18：45-20：55毛概理论\")\n",
    "elif week_time==3:\n",
    "    print(\"星期三有一节课\");print(\"9：45-12：00融合新闻学\")\n",
    "elif week_time==4:\n",
    "    print(\"星期四有两节课\");print(\"14：30-15：55广告文案写作\")\n",
    "else:\n",
    "    print(\"周五、周六、周日\");print(\"自由学习或者修养身心\")\n",
    "print(\"FINISH\")\n",
    "\n",
    "\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "83cf4ed3",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
